package com.ruoyi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.pojo.ChatHistory;
import com.ruoyi.service.ChatHistoryService;
import com.ruoyi.mapper.ChatHistoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author xlz
* @description 针对表【chat_history】的数据库操作Service实现
* @createDate 2023-07-24 18:17:04
*/
@Service
public class ChatHistoryServiceImpl extends ServiceImpl<ChatHistoryMapper, ChatHistory>
    implements ChatHistoryService{

    @Autowired
    private ChatHistoryMapper chatHistoryMapper;

    @Override
    public int addChat(ChatHistory chatHistory) {
        System.out.println(chatHistory);
        return chatHistoryMapper.insert(chatHistory);
    }
}




